package com.xbongbong.pro.enums.errorcodes;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 城市合伙人错误枚举
 * @author haibin
 */
@Getter
public enum CityPartnerErrorCodeEnum implements ErrorCode {
    API_ERROR_501001(501001, "enum.errorCode.msg.api_error_501001"),
    API_ERROR_501002(501002, "enum.errorCode.msg.api_error_501002"),
    API_ERROR_501003(501003, "enum.errorCode.msg.api_error_501003"),
    API_ERROR_501004(501004, "enum.errorCode.msg.api_error_501004"),
    API_ERROR_501005(501005, "enum.errorCode.msg.api_error_501005"),
    API_ERROR_501006(501006, "enum.errorCode.msg.api_error_501006"),
    API_ERROR_501007(501007, "enum.errorCode.msg.api_error_501007"),
    API_ERROR_501008(501008, "enum.errorCode.msg.api_error_501008"),
    API_ERROR_501009(501009, "enum.errorCode.msg.api_error_501009"),
    API_ERROR_501010(501010, "enum.errorCode.msg.api_error_501010"),
    API_ERROR_501011(501011, "enum.errorCode.msg.api_error_501011"),
    API_ERROR_501012(501012, "enum.errorCode.msg.api_error_501012"),
    API_ERROR_501013(501013, "enum.errorCode.msg.api_error_501013"),
    API_ERROR_501014(501014, "enum.errorCode.msg.api_error_501014"),
    API_ERROR_501015(501015, "enum.errorCode.msg.api_error_501015"),
    API_ERROR_501016(501016, "enum.errorCode.msg.api_error_501016"),
    API_ERROR_501017(501017, "enum.errorCode.msg.api_error_501017"),
    API_ERROR_501018(501018, "enum.errorCode.msg.api_error_501018"),
    API_ERROR_501019(501019, "enum.errorCode.msg.api_error_501019"),
    API_ERROR_501020(501020, "enum.errorCode.msg.api_error_501020"),
    API_ERROR_501021(501021, "enum.errorCode.msg.api_error_501021"),
    API_ERROR_501022(501022, "enum.errorCode.msg.api_error_501022"),
    API_ERROR_501023(501023, "enum.errorCode.msg.api_error_501023"),
    API_ERROR_501024(501024, "enum.errorCode.msg.api_error_501024"),
    API_ERROR_501025(501025, "enum.errorCode.msg.api_error_501025"),
    API_ERROR_501026(501026, "enum.errorCode.msg.api_error_501026"),
    API_ERROR_501027(501027, "enum.errorCode.msg.api_error_501027"),
    API_ERROR_501028(501028, "enum.errorCode.msg.api_error_501028"),

    ;

    /**
     * 错误码
     */
    private final int code;
    /**
     * 错误描述
     */
    private final String msg;

    CityPartnerErrorCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;

    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return I18nMessageUtil.getMessage(msg);
    }
}
